/**
 * Created by yhy on 2018/11/21.
 */

export default class HwlError extends Error{

    constructor(ms,data,stack){
        super(ms,stack);
        this._data = data;
        this.msg = ms;
        if(data){
            this.code = data.rescode;
        }
    }


    getData(){
        return this._data;
    }

    msg = '';

    code = '';

}